<%-- 
    Document   : newjspRecommendationDetails
    Created on : Dec 4, 2011, 3:41:15 PM
    Author     : ferru001
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/views/includes.jsp" %>
<%@page import="java.util.List"%>
<%@ page import="com.cheapflix.beans.User" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" type="text/css" href="/cheapflix/css/style.css" />
    </head>
    <body>
        <div class="outer">
            <%@ include file="/WEB-INF/views/header.jsp" %>
            <div class="row rowstyle rowleft">
                <div class="searchResults">
                    <% int i = 0;
                    %>
                    <div class="message" style="margin-bottom:10px;width:500px;">The following friends recommended <c:out value="${dvd.title}"/> to you</div>
                    <c:forEach items="${users}" var="user">
                        <%
                            String cssClass = "";
                            List<User> users = (List<User>) request.getAttribute("users");
                            if (i < users.size() - 1) {
                                cssClass = "SingleResult";
                            }
                        %>
                        <div class="<%=cssClass%>"><a href="/cheapflix/users/<c:out value="${user.id}"/>"><c:out value="${user.nameFirst}"/> <c:out value="${user.nameLast}"/></a></div>
                    </c:forEach>
                </div>
            </div>
                     <%@ include file="/WEB-INF/views/footer.jsp" %>
        </div>
    </body>
</html>
